#!/usr/bin/python2

import mysql.connector

mydb = mysql.connector.connect(
  host="localhost",
  user="root",
  passwd="some_pass",
  database="faces"
)

def add_face(face, x,y,w,h, url):
	cursor.execute("INSERT INTO test VALUE (?,?,?,?,?,?)", (face.tobytes(), x,y,w,h, url))